﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MusicIndexView.ascx.cs" Inherits="Controls_MusicIndexView" %>
<div class="mod_indexs pos_r">
    <h2 class="mod_tit_box">
        MV索引</h2>
    <div class="mod_cont">
        <h3>
            按地区</h3>
        <ul class="clearfix">
            <asp:Repeater ID="repRegions" runat="server" DataSourceID="srcMusicRegions">
                <ItemTemplate>
                <li><a href="javascript:void(0);" title="<%#Eval("MusicRegionID") %>"><%#Eval("MusicRegionID")%></a></li>
                </ItemTemplate>
            </asp:Repeater>
            <asp:ObjectDataSource ID="srcMusicRegions" runat="server" 
                SelectMethod="GetList" TypeName="AMV.BLL.MusicRegion">
                <SelectParameters>
                    <asp:Parameter DefaultValue="6" Name="Top" Type="Int32" />
                    <asp:Parameter DefaultValue=" " Name="strWhere" Type="String" />
                    <asp:Parameter DefaultValue="MusicRegionID" Name="filedOrder" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </ul>
        <h3>
            按年份</h3>
        <ul class="clearfix">
            <%
                int year = DateTime.Now.Year;
                for (int i = 0; i < 6; i++)
                {
                    
            %>
            <li><a href="javascript:void(0);" title="<%= year - i %>"><%= year - i %></a> </li>
            <%                  
                } 
            %>
        </ul>
        <h3>
            按流派</h3>
        <ul class="clearfix">
            <asp:Repeater ID="repStyle" runat="server" DataSourceID="srcMusicStyles">
                <ItemTemplate>
                <li><a href="javascript:void(0);" title="<%#Eval("MusicStyleID") %>"><%#Eval("MusicStyleID")%></a></li>
                </ItemTemplate>
            </asp:Repeater>
            <asp:ObjectDataSource ID="srcMusicStyles" runat="server" 
                SelectMethod="GetList" TypeName="AMV.BLL.MusicStyle">
                <SelectParameters>
                    <asp:Parameter DefaultValue="6" Name="Top" Type="Int32" />
                    <asp:Parameter DefaultValue=" " Name="strWhere" Type="String" />
                    <asp:Parameter DefaultValue="MusicStyleID" Name="filedOrder" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </ul>
    </div>
    <div class="mod_more">
    </div>
</div>
